package com.example.administrator.jingpingou.ui;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.example.administrator.jingpingou.R;

public class SheZhiActivity extends AppCompatActivity {
    private TextView mTextViewClear;
    private ImageView mImageViewFanhui;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_she_zhi);
        iniView();
        setListener();
    }

    private void setListener() {
        mTextViewClear.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(SheZhiActivity.this, "清除成功", Toast.LENGTH_SHORT).show();
            }
        });
        mImageViewFanhui.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
                overridePendingTransition(0,R.anim.activity_finish);
            }
        });
    }

    private void iniView() {
        mTextViewClear= (TextView) findViewById(R.id.tv_shezhi_clear);
        mImageViewFanhui= (ImageView) findViewById(R.id.iv_shezhi_fanhui);
    }

    @Override
    protected void onPause() {
        super.onPause();
        overridePendingTransition(0,R.anim.activity_finish);
    }
}
